package com.platinadesign.axa
{
	import flash.display.Stage;
	import flash.events.EventDispatcher;
	import flash.events.IEventDispatcher;

	public class MessageBus extends EventDispatcher
	{
		private static var _instance : MessageBus;

		public function get stage() : Stage
		{
			return _stage;
		}

		private var _stage : Stage;

		public function MessageBus( single : SingletonEnforcer )
		{
		}

		public static function getInstance() : MessageBus
		{
			if( !_instance )
			{
				return ( _instance = new MessageBus( new SingletonEnforcer()));
			}
			return _instance;
		}

		public function init( stage : Stage ) : void
		{
			_stage = stage;
		}
	}
}

class SingletonEnforcer
{
}